

a = ['k', 'n', 'l', 'm']

def gen_permutation
